package com.chatroom.dto;

import com.chatroom.model.ChatRoom;
import lombok.Data;

@Data
public class ChatRoomDTO {
    private Long id;
    private String name;
    private String roomCode;
    private Long creatorId;
    
    public ChatRoomDTO(ChatRoom chatRoom) {
        this.id = chatRoom.getId();
        this.name = chatRoom.getName();
        this.roomCode = chatRoom.getRoomCode();
        this.creatorId = chatRoom.getCreator().getId();
    }
} 